package service.impl;

import bean.Emp;
import mapper.EmpMapper;
import service.BaseService;
import service.EmpService;

import java.io.IOException;
import java.util.List;

public class EmpServiceImpl extends BaseService implements EmpService {
    private EmpMapper empMapper;
    public EmpServiceImpl(){
        try {
            empMapper=getMapper(EmpMapper.class);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
    @Override
    public List<Emp> find1(String ename) {
        return empMapper.find1(ename);
    }

    @Override
    public List<Emp> find2(Emp emp) {
        return empMapper.find2(emp);
    }

    @Override
    public List<Emp> find(Emp emp) {
        return empMapper.find(emp);
    }

    @Override
    public List<String> allJob() {
        return empMapper.allJob();
    }
}
